/* cl.ext.given.report 0.1*/
(
    function (factory) {
        if (typeof define === 'function' && define.amd) {
            define(['jquery',"echarts","eChartChina","eChartTheme"], function($,echartsjs) {
                factory($,echartsjs);
            });
        } else if (typeof module === 'object' && module.exports) {
            var echartsjs = require('echarts');
            var eChartChinajs = require('eChartChina');
            var eChartThemejs = require('eChartTheme');
            module.exports = function( root, jQuery ) {
                if ( jQuery === undefined ) {
                    if ( typeof window !== 'undefined' ) {
                        jQuery = require('jquery');
                    }
                    else {
                        jQuery = require('jquery')(root);
                    }
                }
                factory(jQuery,echartsjs);
            };
        } else {
            factory(jQuery,echarts);
        }
    }(
    function ($,echarts){
        var defaultExtInfo={};
        var defaults={};
        var $modalCommon={
            getDefaults :function () {
                return defaults
            },
            getOptions : function (elementData,options) {
            }
        };
        var EChartsExtModal = function() {};
        EChartsExtModal.prototype = {
            initECharts:function(obj,option){
                var myCharts=echarts.init(obj,"macarons");
                myCharts.setOption(option);
                return myCharts
            }
        };
        $.ExtECharts = new EChartsExtModal;
        $.ExtECharts.Constructor = EChartsExtModal;
        return EChartsExtModal;
    })
);